﻿using Curry.Forum.Command.Handler.AutoFac;
using Curry.Forum.Command.Handler.AutoMapper;
using Curry.Forum.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;

namespace Curry.Forum.Api
{
    public class WebApiApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            //映射
            AutoMapperConfig.Configure();

            //IOC
            AutofacExt.RegisterApplication();

            ConfigSettings.Initialize();


            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
    }
}
